<template>
  <div />
</template>

<script>
import { asyncRoutes } from '@/router'
export default {
  created() {
    const menus = this.$store.state.user.userInfo.roles.menus
    const route = asyncRoutes.filter(route => menus.includes(route.name))
    console.log(route)
  }
}
</script>

<style>

</style>
